package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.RoleModulePermissionMapper;
import com.richest.api.service.IRoleModulePermissionService;
import com.richest.bean.RoleModulePermissionBean;

/**
 * 角色、模块和权限关联信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class RoleModulePermissionServiceImpl implements IRoleModulePermissionService {

	@Autowired
	private RoleModulePermissionMapper mapper;

	@Override
	public Integer roleModulePermissionAdd(RoleModulePermissionBean bean) {
		return mapper.roleModulePermissionAdd(bean);
	}

	@Override
	public Integer roleModulePermissionUpdate(RoleModulePermissionBean bean) {
		return mapper.roleModulePermissionUpdate(bean);
	}

	@Override
	public Integer roleModulePermissionDelete(Long id) {
		return mapper.roleModulePermissionDelete(id);
	}

	@Override
	public RoleModulePermissionBean roleModulePermissionSelectOne(Long id) {
		return mapper.roleModulePermissionSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> roleModulePermissionSelectMap(Map<String, Object> params) {
		return mapper.roleModulePermissionSelectMap(params);
	}
}
